import router from '@/router'
import { removeItem } from '@/utils/auth'
import {Message} from "element-ui"
export function resError(res) {
    Message.error(res.message)
    if(res.data == '抱歉，您没有访问权限'){
        removeItem("token")
        removeItem("identify")
        setTimeout(() => {
            router.push('/authorization')
        }, 500)
    }
}
   